class shape
{
public:
    void setwidth(int w)
    {
        width = w;
    }
    void setheight(int h)
    {
        height = h;
    }
    int getheight()
    {
        return height;
    }

protected:
    int width;
    int height;
};
class rectangle : public shape
{
public:
    int getarea()
    {
        return width * height;
    }
    int getwidthaddheight()
    {
        return width + height;
    }
};